import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import AnimatedTransition from '../AnimatedTransition';

const Plain = () => {
    const navigate = useNavigate();

    useEffect(() => {
        const timer = setTimeout(() => {
            navigate('/home')
        }, 1500);
        return () => clearTimeout(timer);
    }, [navigate]);

    return (
        <AnimatedTransition>
            <div>
                <img src="https://example.com/your-image.jpg" alt="海报" />
            </div>
        </AnimatedTransition>
    );
};

export default Plain;